/**
 *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
 */
package com.umf.b2b.model.pay;

import com.umf.b2b.MerchantBaseRequest;
import com.umpay.dto.UMFResponse.Message;
import com.umpay.util.UMFUtil;

/**
<p>Title:PaymentWechatMiniProgramPay</p>  
<p>Description: ΢��С����֧��</p>
 */
public class PaymentWechatMiniProgramPay extends MerchantBaseRequest{
	
	private String notify_url;
	private String ret_url;
	private String mer_trace;
	private String trade_no;
	private String pay_type;
	private String auth_code;
	private String openid;
	private String appid;
	private String amount;
	private String remark;
	private String url = "/payment/wechatMiniProgramPay";

	private String settle_amt;
	private String mer_check_date;
	private String order_id;
	private String prepay_id;
	private String time_stamp;
	private String nonce_str;
	private String pay_sign_type;

	@Override
	public String getRequestUrl() {
		return baseUrl + url;
	}

	@Override
	public PaymentWechatMiniProgramPay doRequest() throws Exception {
		Message<PaymentWechatMiniProgramPay> response = UMFUtil.post(createAPIContext(), this,PaymentWechatMiniProgramPay.class);
		MerchantBaseRequest baseResult = convertResult(response, PaymentWechatMiniProgramPay.class);
		if(baseResult == null)
			return null;
		return (PaymentWechatMiniProgramPay)baseResult;
	}


	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getMer_trace() {
		return mer_trace;
	}

	public void setMer_trace(String mer_trace) {
		this.mer_trace = mer_trace;
	}

	public String getTrade_no() {
		return trade_no;
	}

	public void setTrade_no(String trade_no) {
		this.trade_no = trade_no;
	}

	public String getPay_type() {
		return pay_type;
	}

	public void setPay_type(String pay_type) {
		this.pay_type = pay_type;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public String getAuth_code() {
		return auth_code;
	}

	public void setAuth_code(String auth_code) {
		this.auth_code = auth_code;
	}

	public String getSettle_amt() {
		return settle_amt;
	}

	public void setSettle_amt(String settle_amt) {
		this.settle_amt = settle_amt;
	}

	public String getMer_check_date() {
		return mer_check_date;
	}

	public void setMer_check_date(String mer_check_date) {
		this.mer_check_date = mer_check_date;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getPrepay_id() {
		return prepay_id;
	}

	public void setPrepay_id(String prepay_id) {
		this.prepay_id = prepay_id;
	}

	public String getTime_stamp() {
		return time_stamp;
	}

	public void setTime_stamp(String time_stamp) {
		this.time_stamp = time_stamp;
	}

	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	public String getPay_sign_type() {
		return pay_sign_type;
	}

	public void setPay_sign_type(String pay_sign_type) {
		this.pay_sign_type = pay_sign_type;
	}

	public String getRet_url() {
		return ret_url;
	}

	public void setRet_url(String ret_url) {
		this.ret_url = ret_url;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("PaymentWechatMiniProgramPay [notify_url=");
		builder.append(notify_url);
		builder.append(", ret_url=");
		builder.append(ret_url);
		builder.append(", mer_trace=");
		builder.append(mer_trace);
		builder.append(", trade_no=");
		builder.append(trade_no);
		builder.append(", pay_type=");
		builder.append(pay_type);
		builder.append(", auth_code=");
		builder.append(auth_code);
		builder.append(", openid=");
		builder.append(openid);
		builder.append(", appid=");
		builder.append(appid);
		builder.append(", amount=");
		builder.append(amount);
		builder.append(", remark=");
		builder.append(remark);
		builder.append(", url=");
		builder.append(url);
		builder.append(", settle_amt=");
		builder.append(settle_amt);
		builder.append(", mer_check_date=");
		builder.append(mer_check_date);
		builder.append(", order_id=");
		builder.append(order_id);
		builder.append(", prepay_id=");
		builder.append(prepay_id);
		builder.append(", time_stamp=");
		builder.append(time_stamp);
		builder.append(", nonce_str=");
		builder.append(nonce_str);
		builder.append(", pay_sign_type=");
		builder.append(pay_sign_type);
		builder.append(", version=");
		builder.append(version);
		builder.append(", mer_id=");
		builder.append(mer_id);
		builder.append(", ret_code=");
		builder.append(ret_code);
		builder.append(", ret_msg=");
		builder.append(ret_msg);
		builder.append(", links=");
		builder.append(links);
		builder.append("]");
		return builder.toString();
	}
	
	
}
